Memory Management with Use-Counted Regions

نویسندگان

  • Tachio Terauchi
  • Alex Aiken
چکیده

We introduce a new region-based memory management technique that allows flexible memory usagepatterns and is provably safe. Our technique is explicit and manual like C’s malloc and free, and itallows programmers to exert a similar degree of control over the program behavior. Our method is quitesimple in spite of this expressiveness and safety.We apply the technique to a small functional language to formally describe the core concepts, proveits safety, and argue its usability and efficiency analytically. In particular, we show that the system canefficiently encode more rigid, traditional regions whose lifetime is bounded by that of a stack frame. Wealso show that the technique works nicely with multi-threaded and imperative programs.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Safe manual memory management in Cyclone

The goal of the Cyclone project is to investigate how to make a low-level C-like language safe. Our most difficult challenge has been providing programmers control over memory management while retaining safety. This paper 1 describes our experience trying to integrate and use effectively two previously-proposed, safe memory-management mechanisms: statically-scoped regions and tracked pointers. ...

متن کامل

Safe and Flexible Memory Management in Cyclone

Cyclone is a type-safe programming language intended for applications requiring control over memory management. Our previous work on Cyclone included support for stack allocation, lexical region allocation, and a garbage-collected heap. We achieved safety (i.e., prevented dangling pointers) through a region-based type-and-effects system. This paper describes some new memory-management mechanism...

متن کامل

The Effect of Scopolamine on Avoidance Memory and Hippocampal Neurons in Male Wistar Rats

Introduction: Cholinergic systems are involved in learning and memory. Scopolamine, a muscarinic acetylcholine receptor antagonist, is used as a standard/ reference drug for inducing cognitive deficits in healthy humans and animals. The purpose of this study was to evaluate the effects of scopolamine on avoidance memory and number of neurons in rat’s hippocampus. . Methods: Thirty five male alb...

متن کامل

Verifying Reference Counted Objects

Reference counting is a pervasive resource management idiom where each resource contains a count of the number of clients that hold a reference to it, and each client increments (resp., decrements) the count on acquiring (resp., releasing) the resource. If the reference count falls to zero, the system can reclaim the resource. Reference counting is often a source of subtle bugs, ranging from le...

متن کامل

Effectiveness of Cognitive Rehabilitation Group Therapy on Verbal Memory, Stress Management and Alexithymia in Patients with Traumatic Brain Injury

Introduction: Traumatic brain injury is one of the significant causes of death and physical and psychological disability that can effect on verbal memory, stress management and alexithymia. As a result, present research aimed to determine the effectiveness of cognitive rehabilitation group therapy on verbal memory, stress management and alexithymia in patients with traumatic brain injury. Meth...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004